{% extends 'base.html' %}
{% from "macros/_page.html" import render_errors %}
{%block title%}设置 | {%endblock%}
{%block container%}
<div class="row">
<div class="span8">
    <div id="settings">
    <ul class="nav nav-tabs">
        <li class="active"><a href="{{url_for('account.settings')}}">帐号</a></li>
        <li><a href="{{url_for('account.settings_password')}}">修改密码</a></li>
    </ul>
    <form class="form-horizontal" method="POST">
        <div style="display:none">
            {{ form.csrf_token }}
        </div>
        <div class="control-group">
            {{form.username.label(class="control-label")}}
            <div class="controls">
              {{ form.username() }} {{ render_errors(form.username) }}
            </div>
        </div>
        <div class="control-group">
            {{form.email.label(class="control-label")}}
            <div class="controls">
              {{ form.email() }} {{ render_errors(form.email) }}
            </div>
        </div>
        <div class="control-group">
            {{form.phone.label(class="control-label")}}
            <div class="controls">
              {{ form.phone() }} {{ render_errors(form.phone) }}
            </div>
        </div>

        <div class="form-actions">
            {{form.submit(class="btn btn-primary")}}
        </div>
    </form>
    </div>
</div>
</div>
{% endblock %}